package sjms.construction.proxy.dynamic;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2020/6/5 13:00
 */
public class Test {

    public static void main(String[] args) {
        Shape shape = new Target();

        ProxyFactory factory = new ProxyFactory(shape);
        Shape proxyInstance = (Shape)factory.getProxyInstance();
        //proxyInstance.draw();
        proxyInstance.draw2();
    }
}
